/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const tableRouter = {
  path: '/equipment',
  component: Layout,
  name: 'equipment',
  redirect: '/equipment/list',
  meta: { roles: [1, 2], title: '设备管理', icon: 'equipment', },
  children: [
    {
      path: 'list',
      component: () => import('@/views/equipment-management/list/index'),
      name: 'equipment-list',
      meta: { title: '设备管理列表', breadcrumb: false, },
    },
    {
      path: 'view-device',
      component: () => import('@/views/equipment-management/view-device.vue'),
      name: 'equipment-view-device',
      hidden: true,
      meta: { title: '查看设备', activeMenu: '/equipment/list' },
    }
  ]
}
export default tableRouter